package com.example.listener.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

@Configuration
public class RabbitMqConfig {


    //死信队列
    @Bean
    public Queue queueDlx() {
        Map<String, Object> arguments = new HashMap<>();
        return new Queue("queue.order.dlx", false, false, false, arguments);
    }

}
